package com.qdu.bussiness.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qdu.common.annotation.Excel;
import com.qdu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 购票记录对象 bus_ticket_purchase
 * 
 * @author qdu
 * @date 2022-03-06
 */
public class BusTicketPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long purchaseId;

    /** 账单ID */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long billId;

    /** 购买人 */
    @Excel(name = "购买人")
    private String purchaseUser;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date purchaseTime;

    /** 门票ID */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long ticketId;

    /** 购买金额 */
    @Excel(name = "购买金额")
    private String purchaseMoney;

    /** 购买状态 */
    @Excel(name = "购买状态")
    private String purchaseStatus;

    /** 是否结算 */
    @Excel(name = "是否结算")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long isPaid;

    /** 门票开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ticketStartTime;

    /** 门票结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ticketEndTime;

    /** 门票核销时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ticketVerifyTime;

    /** 门票名称 */
    private String ticketName;

    /** 门票编码 */
    private String ticketCode;

    /** 门票类型 */
    private String ticketType;

    public void setPurchaseId(Long purchaseId)
    {
        this.purchaseId = purchaseId;
    }

    public Long getPurchaseId() 
    {
        return purchaseId;
    }
    public void setBillId(Long billId) 
    {
        this.billId = billId;
    }

    public Long getBillId() 
    {
        return billId;
    }
    public void setPurchaseUser(String purchaseUser) 
    {
        this.purchaseUser = purchaseUser;
    }

    public String getPurchaseUser() 
    {
        return purchaseUser;
    }
    public void setPurchaseTime(Date purchaseTime) 
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime() 
    {
        return purchaseTime;
    }
    public void setTicketId(Long ticketId) 
    {
        this.ticketId = ticketId;
    }

    public Long getTicketId() 
    {
        return ticketId;
    }
    public void setPurchaseMoney(String purchaseMoney) 
    {
        this.purchaseMoney = purchaseMoney;
    }

    public String getPurchaseMoney() 
    {
        return purchaseMoney;
    }
    public void setPurchaseStatus(String purchaseStatus) 
    {
        this.purchaseStatus = purchaseStatus;
    }

    public String getPurchaseStatus() 
    {
        return purchaseStatus;
    }
    public void setIsPaid(Long isPaid) 
    {
        this.isPaid = isPaid;
    }

    public Long getIsPaid() 
    {
        return isPaid;
    }

    public Date getTicketStartTime() {
        return ticketStartTime;
    }

    public void setTicketStartTime(Date ticketStartTime) {
        this.ticketStartTime = ticketStartTime;
    }

    public Date getTicketEndTime() {
        return ticketEndTime;
    }

    public void setTicketEndTime(Date ticketEndTime) {
        this.ticketEndTime = ticketEndTime;
    }

    public String getTicketName() {
        return ticketName;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName;
    }

    public String getTicketCode() {
        return ticketCode;
    }

    public void setTicketCode(String ticketCode) {
        this.ticketCode = ticketCode;
    }

    public String getTicketType() {
        return ticketType;
    }

    public void setTicketType(String ticketType) {
        this.ticketType = ticketType;
    }

    public Date getTicketVerifyTime() {
        return ticketVerifyTime;
    }

    public void setTicketVerifyTime(Date ticketVerifyTime) {
        this.ticketVerifyTime = ticketVerifyTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseId", getPurchaseId())
            .append("billId", getBillId())
            .append("purchaseUser", getPurchaseUser())
            .append("purchaseTime", getPurchaseTime())
            .append("ticketId", getTicketId())
            .append("purchaseMoney", getPurchaseMoney())
            .append("purchaseStatus", getPurchaseStatus())
            .append("isPaid", getIsPaid())
            .toString();
    }
}
